﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;

namespace SmartStringResources
{
    public class FileSystemService : IFileSystemService
	{
		public TextWriter GetStreamWriter(string path, FileMode fileMode)
		{
			return new StreamWriter(File.Open(path, fileMode));
		}

		public Stream OpenFileStream(string path)
		{
			return new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read);
		}

		public bool Exists(string path)
		{
			return File.Exists(path);
		}
	}
}
